<template>
  <div class="zt-tab-nav">
    <span
      :class="tabSelected == index ? 'zt-item-selected' : 'zt-tab-item'"
      v-for="(item, index) in content"
      :key="index"
      @click="tabClick(item, index)"
    >
      {{ item.label }}
      <span v-if="tabIndex.length !== 0">({{ tabIndex[index] }})</span>
    </span>
  </div>
</template>
<script lang="ts" src="./tabNav.ts"></script>
